package com.dayaokeji.rhythmschoolstudent.client.common.exam.adapter;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dayaokeji.rhythmschoolstudent.R;
import com.dayaokeji.rhythmschoolstudent.utils.DateUtils;
import com.dayaokeji.rhythmschoolstudent.utils.ExamUtils;
import com.dayaokeji.rhythmschoolstudent.utils.ObjectUtils;
import com.dayaokeji.rhythmschoolstudent.utils.UserUtils;
import com.dayaokeji.server_api.domain.Exam;

/**
 * Created by Gorden on 2017/10/18.
 * 考试题库列表
 */

public class UnTestedExamListAdapter extends BaseQuickAdapter<Exam,BaseViewHolder> {

    public UnTestedExamListAdapter() {
        super(R.layout.item_exam_list, null);
    }

    @Override
    protected void convert(BaseViewHolder helper, Exam item) {

        helper.setText(R.id.tv_exam_title,item.getName());
       /* helper.setText(R.id.tv_exam_create_time, DateUtils.format(item.getCreateTime(),DateUtils.FORMAT_DATE));
        if (item.getResultStatus() == 2 && item.getStatus() == 4) {
            helper.setText(R.id.tv_exam_status, "已批阅");
        }else{
            helper.setText(R.id.tv_exam_status, ExamUtils.getStatusName(item.getStatus()));
        }*/
    }
}
